﻿using System;

namespace Deferred.Library.Configuration
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="arguements"></param>
    /// <returns></returns>
    public delegate String CommandCallback(string[] arguements);

    /// <summary>
    /// 
    /// </summary>
    public class Command
    {
        /// <summary>
        /// 
        /// </summary>
        public CommandCallback Callback { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; private set; }
        /// <summary>
        /// 
        /// </summary>
        public string Help { get; private set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="Help"></param>
        /// <param name="Callback"></param>
        public Command(string Name, string Help, CommandCallback Callback)
        {
            this.Name = Name;
            this.Help = Help;
            this.Callback = Callback;
        }
    }
}
